<?php

class myException extends Exception{
    public function getAllInfo(){
        return "异常信息:{$this->getMassage()}";
    }
}
try{

        $x=new Exception("错误信息！");AllInfo
        throw $x;

}catch (Exception $e){
    echo $e->getAllInfo(>

